import Vue from 'vue'
import Vuex from 'vuex'
import goodsCar from './module/goods-car'
import userInfo from './module/user-info'
Vue.use(Vuex)
const store = new Vuex.Store({
  modules: {
    goodsCar,
    userInfo
  },
  getters: {
    goodsInfo: state => state.goodsCar.goodsInfo,
    address: state => state.userInfo.address,
    priceAll: state => state.goodsCar.priceAll,
    countAll: state => state.goodsCar.countAll,
    token: state => state.userInfo.token,
    redirectInfo: state => state.userInfo.redirectInfo
  }
})
export default store
